package com.lykj.modules.shop.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lykj.core.mp.base.BaseEntity;
import com.lykj.core.tenant.mp.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 红包表实体类
 *
 * @author cxl
 * @since 2022-01-14
 */
@Data
@TableName("shsy_user_bonus")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserBonus对象", description = "红包表")
public class UserBonus extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID")
	private Long userId;
	/**
	 * 订单ID
	 */
	@ApiModelProperty(value = "订单ID")
	private Long orderId;
	/**
	 * 红包标题
	 */
	@ApiModelProperty(value = "红包标题")
	private String title;
	/**
	 * 红包金额
	 */
	@ApiModelProperty(value = "红包金额")
	private BigDecimal number;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;
	/**
	 * 领取时间
	 */
	@ApiModelProperty("领取时间")
	private Date receiveTime;
	/**
	 * account
	 */
	@ApiModelProperty(value = "account")
	@TableField(exist = false)
	private String account;
	/**
	 * uid
	 */
	@ApiModelProperty(value = "uid")
	@TableField(exist = false)
	private Long uid;
}
